package com.expdatacloud.mapper;

import com.expdatacloud.entity.DecideWay;
import com.expdatacloud.entity.IqcDetection;
import com.expdatacloud.vo.SuppliedMaterialsDailyVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * IQC-检测表 Mapper 接口
 * </p>
 *
 * @author jie
 * @since 2019-11-13
 */
public interface IqcDetectionMapper {

    IqcDetection getBySkuAndReceiptKey(@Param("sku")String sku ,@Param("receiptKey")String receiptKey);

    /**
     * 更新检验项目标识为已提交
     */

    List<IqcDetection> list(IqcDetection iqcDetection);


    int update(IqcDetection iqcDetection);

    /**
     * 获取判定方式
     */
    List<DecideWay> getDecideWay(@Param("haveReceive") String haveReceive);

    /**
     * 根据检验类别编码获取配置代码中的描述
     * @param inspectionCategory 检验类别编码
     * @return 检验类别描述
     */
    String getDescription(String inspectionCategory);
    String getCode(String inspectionCategoryDesc);

    void updateHistory(SuppliedMaterialsDailyVo suppliedMaterialsDailyVo);
}
